#include "mainwindow.h"
#include <QApplication>
#include<QTextCodec>
#include<QDebug>
int main(int argc, char *argv[])
{
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF8"));
    QApplication a(argc, argv);
    QTextCodec *codec = QTextCodec::codecForName("UTF8");
        if (codec) {
            //QTextCodec::setCodecForTr(codec);
           // QTextCodec::setCodecForLocale(codec);
            //QTextCodec::setCodecForCStrings(codec);
        }
    qDebug()<<"main 运行成功";
    MainWindow w;

    w.show();

    return a.exec();
}
